package com.enjoyor.soa.traffic.api.dto.collectms;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Title: TreeDto.java
 * @Package com.enjoyor.soa.traffic.core.collectms.pojo
 * @Description: EasyUI树对应的实体类
 * @author sxh
 * @date 2016年3月8日 下午1:56:34
 * @version V1.0
 */
public class TreeDto implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -988485774735332491L;
    private String id;
    private String text;
    private String state;// 状态
    private Boolean checked;// 选中状态
    private Object attributes;// 属性
    private List<TreeDto> children = new ArrayList<TreeDto>();

    public TreeDto() {

    }

    /**
     * @param id
     * @param text
     * @param state
     * @param checked
     * @param attributes
     */
    public TreeDto(String id, String text, String state, Boolean checked, Object attributes) {
        this.id = id;
        this.text = text;
        this.state = state;
        this.checked = checked;
        this.attributes = attributes;
    }

    public void AddChildren(TreeDto pojo) {
        children.add(pojo);
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text
     *            the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     *            the state to set
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * @return the checked
     */
    public Boolean getChecked() {
        return checked;
    }

    /**
     * @param checked
     *            the checked to set
     */
    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    /**
     * @return the attributes
     */
    public Object getAttributes() {
        return attributes;
    }

    /**
     * @param attributes
     *            the attributes to set
     */
    public void setAttributes(Object attributes) {
        this.attributes = attributes;
    }

    /**
     * @return the children
     */
    public List<TreeDto> getChildren() {
        return children;
    }

    /**
     * @param children
     *            the children to set
     */
    public void setChildren(List<TreeDto> children) {
        this.children = children;
    }

}
